import  java.util.Scanner;
public class Elaina_10_5_ti1
{
	public static int min(int a,int b,int c)
	{
		int current_min = 0;
		if(a < b) current_min = a;
		else current_min = b;
		if(c < current_min) current_min = c;
		return current_min;
	}
	public static void main(String[] args)
	{
      Scanner sc = new Scanner(System.in);
      int a = sc.nextInt();
      int b = sc.nextInt();
      int c = sc.nextInt();
      System.out.println(min(a,b,c));
	}
}